package com.ruoyi.model.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 数据模型属性信息管理对象 etl_model_fields
 * 
 * @author tangyongbo
 * @date 2021-05-16
 */
public class EtlModelFields extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 模型id */
    @Excel(name = "模型id")
    private Long modelId;

    /** 属性名 */
    @Excel(name = "属性名")
    private String fieldName;

    /** 属性描述 */
    @Excel(name = "属性描述")
    private String fieldDescription;

    /** 顺序 */
    @Excel(name = "顺序")
    private String sequence;

    /** 数据类型 */
    @Excel(name = "数据类型")
    private String dataType;

    /** 数据长度 */
    @Excel(name = "数据长度")
    private Long dataLength;

    /** 是否主键 (1:是主键，0：不是主键)*/
    @Excel(name = "是否主键")
    private Long isPrimaryKey;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setModelId(Long modelId) 
    {
        this.modelId = modelId;
    }

    public Long getModelId() 
    {
        return modelId;
    }
    public void setFieldName(String fieldName) 
    {
        this.fieldName = fieldName;
    }

    public String getFieldName() 
    {
        return fieldName;
    }
    public void setFieldDescription(String fieldDescription) 
    {
        this.fieldDescription = fieldDescription;
    }

    public String getFieldDescription() 
    {
        return fieldDescription;
    }
    public void setSequence(String sequence) 
    {
        this.sequence = sequence;
    }

    public String getSequence() 
    {
        return sequence;
    }
    public void setDataType(String dataType) 
    {
        this.dataType = dataType;
    }

    public String getDataType() 
    {
        return dataType;
    }
    public void setDataLength(Long dataLength) 
    {
        this.dataLength = dataLength;
    }

    public Long getDataLength() 
    {
        return dataLength;
    }

    public Long getIsPrimaryKey() {
        return isPrimaryKey;
    }

    public void setIsPrimaryKey(Long isPrimaryKey) {
        this.isPrimaryKey = isPrimaryKey;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("modelId", getModelId())
            .append("fieldName", getFieldName())
            .append("fieldDescription", getFieldDescription())
            .append("sequence", getSequence())
            .append("createTime", getCreateTime())
            .append("dataType", getDataType())
            .append("dataLength", getDataLength())
            .append("isPrimaryKey", getIsPrimaryKey())
            .toString();
    }
}
